package com.wj.proxy.people;

import com.wj.proxy.KindWomen;

/**
 * @author WangJin
 * @version 1.0
 * @date 2022/2/11 11:40
 */
public class WangPo implements KindWomen {

    private KindWomen kindWomen;
    public WangPo(){ //默认的话，是潘金莲的代理
        this.kindWomen = new PanJinLian();
    }
    //她可以是KindWomen的任何一个女人的代理，只要你是这一类型
    public WangPo(KindWomen kindWomen){
        this.kindWomen = kindWomen;
    }

    public void playWithMan() {
        this.kindWomen.playWithMan(); //自己老了，干不了，可以让年轻的代替
    }
    public void makeEyesWithMan() {
        this.kindWomen.makeEyesWithMan(); //王婆这么大年龄了，谁看她抛媚眼？！
    }

}
